import request from '@/utils/request'

export function getDepts(params) {
  return request({
    url: '/getDepts',
    method: 'get',
    params,
  })
}

export function getBloodComponents(params) {
  return request({
    url: '/getBloodComponents',
    method: 'get',
    params,
  })
}

export function getMatchTypes(params) {
  return request({
    url: '/getMatchTypes',
    method: 'get',
    params,
  })
}

export function getBloodDonations(params) {
  return request({
    url: '/getBloodDonations',
    method: 'get',
    params,
  })
}

export function getMatchApply(params) {
  return request({
    url: '/getMatchApply',
    method: 'get',
    params,
  })
}

export function getBloodApplies(params) {
  return request({
    url: '/getBloodApplies',
    method: 'get',
    params,
  })
}

export function getReport(params) {
  return request({
    url: '/getReport',
    method: 'get',
    params,
  })
}

export function getCanMatchBloods(params) {
  return request({
    url: '/getCanMatchBloods',
    method: 'get',
    params,
  })
}

export function saveMatchRecords(data) {
  return request({
    url: '/saveMatchRecords',
    method: 'post',
    data,
  })
}

export function getBloodMatchesFill(params) {
  return request({
    url: '/getBloodMatchesFill',
    method: 'get',
    params,
  })
}

export function saveMatchResult(data) {
  return request({
    url: '/saveMatchResult',
    method: 'post',
    data,
  })
}

export function getBloodMatch(params) {
  return request({
    url: '/getBloodMatch',
    method: 'get',
    params,
  })
}

export function getBloodMatchesInvalid(params) {
  return request({
    url: '/getBloodMatchesInvalid',
    method: 'get',
    params,
  })
}

export function invalidBloodMatches(data) {
  return request({
    url: '/invalidBloodMatches',
    method: 'post',
    data,
  })
}

export function getBloodMatches(params) {
  return request({
    url: '/getBloodMatches',
    method: 'get',
    params,
  })
}

export function getBloods(params) {
  return request({
    url: '/getBloods',
    method: 'get',
    params,
  })
}

export function setWsdl(data) {
  return request({
    url: '/wsdl',
    method: 'post',
    data,
  })
}

export function getWsdl(pararms) {
  return request({
    url: '/wsdl',
    method: 'get',
    pararms,
  })
}
